# Created by 黄景涛
# DATE 2024/5/16

import yaml
from pathlib import Path
import os

BASE_DIR = Path(__file__).parent.parent
cfg_path = os.path.join(BASE_DIR, 'config.json')


def read_yaml(file_path: str = cfg_path):
    with open(file_path, mode='r', encoding='utf8') as f:
        return yaml.safe_load(f)


if __name__ == '__main__':
    print(read_yaml(cfg_path))


